Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(alerts): edit alert modal fixes #27135

Merged
merged 5 commits into from
Jan 2, 2025
Merged

Conversation

anirudhpillai
Copy link
Contributor

Problem

Small fixes for alerts edit form.
Number picker (for threshold) was returning NaN when the number was erased, so need to check for this.

Changes

Fixed the above and reloading the alert on edit, so going back to alert form displays updated values.

👉 Stay up-to-date with PostHog coding conventions for a smoother review.

Does this work well for both Cloud and self-hosted?

N/A

How did you test this code?

Tested locally

@anirudhpillai anirudhpillai requested a review from a team December 23, 2024 16:32
Copy link
Contributor

github-actions bot commented Dec 23, 2024

Size Change: 0 B

Total Size: 1.11 MB

ℹ️ View Unchanged
Filename Size
frontend/dist/toolbar.js 1.11 MB

compressed-size-action

@anirudhpillai anirudhpillai enabled auto-merge (squash) December 23, 2024 17:17
: formula
? `Formula (${formula})`
: `${alphabet[index]} - ${
custom_name ?? name ?? event
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can use getDisplayNameFromEntityNode to get a formatted name that uses readable names, such as "Pageview" instead of "$pageview".

@anirudhpillai anirudhpillai merged commit 96da932 into master Jan 2, 2025
99 checks passed
@anirudhpillai anirudhpillai deleted the fix/alerts-form-smoother branch January 2, 2025 07:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants